com.supermap.ar.areffect.preset
Class ARGeometry
- java.lang.Object
-
- com.supermap.ar.areffect.preset.BaseShape
-
- com.supermap.ar.areffect.preset.ARGeometry
-
- Direct Known Subclasses:
- ARGeoHorizontalRegion, ARGeoLine, ARGeoPoint, ARGeoPrism, ARGeoRegion2, ARGeoVerticalRegion
public abstract class ARGeometry extends BaseShape
AR geometry object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classARGeometry.ARGeometryTypetype-
Nested classes/interfaces inherited from class com.supermap.ar.areffect.preset.BaseShape
BaseShape.MatType, BaseShape.Mode
-
-
Constructor Summary
Constructors Constructor and Description ARGeometry()constructor Transparent materials are used by defaultARGeometry(BaseShape.MatType matType)constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddPoint3D(int part, int index, Point3D point3D)voidclear()clearvoiddeletePoint3D(int part, int index)AREffectElementgetParentElement()Get the parent nodeintgetPartCount()Gets the number of child objectsjava.util.List<Point3D>getPartPoint3Ds(int index)Gets the AR coordinate point set for the child object of the specified indexBaseShapegetPartShape(int index)Gets the AR Shape object for the child of the specified indexARGeometry.ARGeometryTypegetType()Returns the type of the AR geometry objectbooleanisEdit()voidresetGeometry()Resetting geometry objectsvoidselect()SelectedvoidsetEdit(boolean edit)voidsetParentNode(AREffectElement element)Setting the parent nodevoidsetParentNode(EffectView arView)Setting the parent nodevoidsetSelectionColor(Color color)Sets the color of the rendering object under the selection statusvoidunSelect()Cancel the selected statusvoidupdatePoint3D(int part, int index, Point3D point3D)-
Methods inherited from class com.supermap.ar.areffect.preset.BaseShape
getColor, getColorRGBA, getMetallic, getRadius, getReflectance, getRoughness, getSelectionColor, getShapeMaterial, getShapeStyle, getTextureMap, isRenderable, isSelected, isShadowCaster, isShadowReceiver, setColor, setColor, setColor, setMetallic, setRadius, setReflectance, setRenderable, setRoughness, setShadowCaster, setShadowReceiver, setShapeStyle, setTextureMap, updateMaterial
-
-
-
-
Constructor Detail
-
ARGeometry
public ARGeometry(BaseShape.MatType matType)
constructor- Parameters:
matType- Material Type (Transparent/opaque)
-
ARGeometry
public ARGeometry()
constructor Transparent materials are used by default
-
-
Method Detail
-
getType
public ARGeometry.ARGeometryType getType()
Returns the type of the AR geometry object- Returns:
-
getPartShape
public BaseShape getPartShape(int index)
Gets the AR Shape object for the child of the specified index- Parameters:
index-- Returns:
-
getPartPoint3Ds
public java.util.List<Point3D> getPartPoint3Ds(int index)
Gets the AR coordinate point set for the child object of the specified index- Parameters:
index-- Returns:
-
getPartCount
public int getPartCount()
Gets the number of child objects- Returns:
-
setSelectionColor
public void setSelectionColor(Color color)
Description copied from class:BaseShapeSets the color of the rendering object under the selection status- Overrides:
setSelectionColorin classBaseShape
-
select
public void select()
Description copied from class:BaseShapeSelected
-
unSelect
public void unSelect()
Description copied from class:BaseShapeCancel the selected status
-
updatePoint3D
public void updatePoint3D(int part, int index, Point3D point3D)
-
deletePoint3D
public void deletePoint3D(int part, int index)
-
addPoint3D
public void addPoint3D(int part, int index, Point3D point3D)
-
resetGeometry
public void resetGeometry()
Resetting geometry objects
-
isEdit
public boolean isEdit()
-
setEdit
public void setEdit(boolean edit)
-
setParentNode
public void setParentNode(AREffectElement element)
Setting the parent node- Parameters:
element-
-
setParentNode
public void setParentNode(EffectView arView)
Setting the parent node- Parameters:
arView-
-
getParentElement
public AREffectElement getParentElement()
Get the parent node- Returns:
-
-